﻿using System;
using System.Configuration;
using SmartQuant;
using SmartQuant.Indicators;

namespace CtpseDemo
{
    public class EtfTestStrategy: Strategy
    {
        public EtfTestStrategy(Framework framework, string name) : base(framework, name)
        {
            //Bars
        }

        protected override void OnStrategyStart()
        {
        }

        protected override void OnTrade(Instrument instrument, Trade trade)
        {
            //AddReminder()
        }

        protected override void OnBar(Instrument instrument, Bar bar)
        {
            Console.WriteLine(bar);
            Buy(instrument, 10000);
        }

        protected override void OnOrderDone(Order order)
        {
            Console.WriteLine(order);
        }
    }
}